package com.exportservices;

import java.util.List;

import javax.xml.ws.Endpoint;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.jdbc.datasource.DriverManagerDataSource;



import com.exportservices.domain.Client;

public class Publisher {

	/**
	 * @param args
	 */
	static public ApplicationContext ac;
	
	public static void main(String[] args) {
		// TODO Auto-generated method stub
		ac = new ClassPathXmlApplicationContext("context.xml", Publisher.class);
//	    DriverManagerDataSource dataSource = (DriverManagerDataSource) ac.getBean("dataSource");
/*		MainExport test=new MainExportImpl();
		List<Client> clients=test.getClientList();
		for(Client client:clients){
			System.out.println(client.getName());
		}
*/
		Endpoint.publish("http://127.0.0.1:9876/export", new MainExportImpl() );
	}

}
